package com.second.app.designpattern.factory;

import java.util.Calendar;

/**
 * @Author GYZ
 * @Date 2023/7/28
 * <pre>
 *   工厂模式的应用  Calendar
 * </pre>
 */
public class Main {

    public static void main(String[] args) {
        Calendar calendar = new Calendar() {
            @Override
            protected void computeTime() {

            }

            @Override
            protected void computeFields() {

            }

            @Override
            public void add(int field, int amount) {

            }

            @Override
            public void roll(int field, boolean up) {

            }

            @Override
            public int getMinimum(int field) {
                return 0;
            }

            @Override
            public int getMaximum(int field) {
                return 0;
            }

            @Override
            public int getGreatestMinimum(int field) {
                return 0;
            }

            @Override
            public int getLeastMaximum(int field) {
                return 0;
            }
        };
    }
}
